package com.bang.daybreak.user.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.bang.daybreak.common.framework.model.convert.Convert;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统用户角色关联表
 * </p>
 *
 * @author wangdejian
 * @since 2019-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user_role")
public class SysUserRole extends Convert {

private static final long serialVersionUID=1L;

    /**
     * 用户角色关联表主键uuid
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     *  sys_user表user_id用户编号
     */
    private String userId;

    /**
     *  sys_role表role_id用户编号
     */
    private String roleId;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String ROLE_ID = "role_id";

}
